package com.elegant.code.aop.zk;

import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.FieldDefaults;
import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = "zookeeper")
@FieldDefaults(level = AccessLevel.PRIVATE)
@Data
public class ZkProperties {
    String address;//zookeeper地址
    int baseSleepTimeMs;//默认等待超时时间
    int maxRetries;//超时后重试次数
    String lockPath;//zNode节点路径
}
